<template>
    <Chart :cdata="cdata" />
</template>

<script>
import Chart from './chart.vue'
export default {
  data () {
    return {
      cdata: {
        xdata: [
          "10-01",
          "10-02",
          "10-03",
          "10-04",
          "10-05",
          "10-06",
          "10-07",
          "10-08",
          "10-09",
          "10-10"
        ],
        lineData1: [
          70,
          80,
          90,
          100,
          80,
          50,
          90,
          77,
          80,
          100
        ],lineData2: [
          90,
          110,
          70,
          66,
          88,
          120,
          110,
          100,
          50,
          80
        ],lineData3: [
          120,
          80,
          56,
          90,
          100,
          70,
          130,
          80,
          66,
          110
        ],
        rateData: []
      }
    };
  },
  components: {
    Chart,
  },
  mounted () {
    this.setData();
  },
  methods: {
    // 根据自己的业务情况修改
    setData () {
      /*for (let i = 0; i < this.cdata.barData.length -1; i++) {
        let rate = this.cdata.barData[i] / this.cdata.lineData[i];
        this.cdata.rateData.push(rate.toFixed(2));
      }*/
    },
  }
};
</script>

<style lang="scss" scoped>
</style>
